package second;

public class myclass {
    int grade;
    String major;
    int class_num;
    String ren="默认";
    private  int hhh=8;
    int hhhh=9;
    static int h=5;

     myclass()
    {

    }
    myclass(int  grade,String major,int class_num )
    {
        this.grade=grade;
        this.major=major;
        this.class_num=class_num;
    }
    myclass(int  grade,String major,int class_num,String ren)
    {
        this.grade=grade;
        this.major=major;
        this.class_num=class_num;
        this.ren=ren;
    }
    void get_infor()
    {
        System.out.print(this.grade+" ");
        System.out.print(this.major+" ");
        System.out.print(this.class_num+" ");
        System.out.println(this.ren+" ");
    }
     void get_ren()
    {
        System.out.println(this.ren);;
    }
   void set_ren(String ren)
    {
      this.ren=ren;
    }








}
